import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const readSystemUserByPage = (param) => request({
    url: baseUrl + '/user/read/page',
    method: 'post',
    data:param
});

export const addSystemUser = (data) => request({
    url: baseUrl + '/user/save',
    method: 'post',
    data:data
})

export const editSystemUser = (data) => request({
    url: baseUrl + '/user/save',
    method: 'post',
    data:data
})

export const delSystemUser = (id) => request({
    url: baseUrl + '/user/delete',
    method: 'post',
    data: { id: id }
})
export const cleanSysCache = () => request({
    url: baseUrl + '/cache/clean',
    method: 'post'
})
